using System;

namespace MetaView.Core;

internal class GuidFastBinaryConverter : FastBinaryConverter<Guid>
{
    protected override Guid Read<TByteBlock>(ref TByteBlock byteBlock, Type type)
    {
        return byteBlock.ReadGuid();
    }

    protected override void Write<TByteBlock>(ref TByteBlock byteBlock, in Guid obj)
    {
        byteBlock.WriteGuid(obj);
    }
}